#include<thread>
#include<iostream>
#include<string>
#include<opencv2/opencv.hpp>
#include<opencv2/highgui.hpp>

#ifdef __cplusplus
extern "C"
{
#endif 
#include<libavformat/avformat.h>
#include<libavutil/avutil.h>
#include<libavutil/log.h>
#ifdef __cplusplus
}
#endif
using namespace std;
//using namespace cv;

int main(int argc,char *argv[])
{
	AVFrame *frame;
	cv::Mat  srcImage;
	std::string filename = "tupian.jpg";
	srcImage = cv::imread(filename,cv::IMREAD_COLOR);
	if(srcImage.empty()){
		std::cout<<"image read error"<<std::endl;
	}
	cv::namedWindow("title");
//	createTrackbar
	cv::imshow("title",srcImage);
	cv::waitKey(0);
	frame  = av_frame_alloc();
	av_log_set_level(AV_LOG_INFO);
	av_log(NULL,AV_LOG_INFO,"hello world\n");
	return 0;
}
